
public class P5 {
	public static void main(String[] args) {
		
		int i = 1;
		while (true) {
			
			int n = 20;
			int count = 0;
			for (int j = 1; j <= n; j++) {
				if (i%j != 0) {
					break;
				}
				count++;
			}
			
			if (count == n) {
				System.out.println(i);
				return;
			} else {
				i++;
			}
		}
	}
}